a = 10
b = 20

# 普通写法

max = None
if a > b:
    max = a
else:
    max = b
print(max)

# 三元运算

max2 = a if a > b else b
print(max2)
